package com.mgrid.convert.mysql.controller;


import com.mgrid.convert.mysql.entity.SHistorysignal;
import com.mgrid.convert.mysql.service.SHistorysignalService;
import lombok.RequiredArgsConstructor;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/mysql")
@RequiredArgsConstructor
public class mysqlController {

    @Resource
    SHistorysignalService SHistorysignalService;

    @PostMapping("/insert")
    public boolean insert(SHistorysignal sHistorysignal){
        return SHistorysignalService.addHistorysignal(sHistorysignal);
    }
}
